package com.sservice.service.service.impl;

import com.sservice.urp.dao.IComDao;
import com.sservice.urp.entity.Com;
import com.sservice.urp.vo.ComVo;
import com.sservice.service.service.IComService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ComServiceImpl implements IComService {

    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private IComDao comDao;

    @Override
    public List<Com> queryByPage(ComVo user) {
        return comDao.queryByPage(user);
    }


    @Override
    public int deleteByPrimaryKey(Integer id) {
        return comDao.deleteByPrimaryKey(id);
    }


    @Override
    public int insertSelective(Com record) {
        return comDao.insertSelective(record);
    }

    @Override
    public Com selectByComName(String name) {
        return comDao.selectByComName(name);
    }

    @Override
    public Com selectByPrimaryKey(Integer id) {
        return comDao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Com record) {
        return comDao.updateByPrimaryKeySelective(record);
    }


    @Override
    public int queryCount(ComVo user) {
        return comDao.queryCount(user);
    }
}
